class A{
    count=5;
    foo(){
        console.log('foo from A'+this.count);
        //console.log(this.name());
    }
    fun=()=>{
        console.log('fun from A'+this.count);
        //console.log(this.name());
    }
    name(){
        return 'this is class A';
    }
}
var instanceA = new A();
//instanceA.foo();
instanceA.fun();
// const {foo, fun} = instanceA;
// fun();